﻿
using RabbitMQ.Client.Events;

namespace Core.RabbitMQ.Consumer
{
    public interface IConsumer<in TMessage> where TMessage : class,new()
    {
        Task ReceiveMessageAsync(string messageId, TMessage message,CancellationToken cancellationToken=default);
    }
}
